<?php
namespace app\indexLogin\model;

use think\Db;
use think\Model;

class ArticleTag extends  Model{

    /**
     * 添加文章中间表内容
     */
    public function add($at){
        foreach($at['tid'] as $k=>$v){
            $data = ['aid'=>$at['aid'],'tid'=>$v];
             $res=Db::table('wb_article_tag')->insert($data);
        }
        return $res;
    }

}